package com.atguigu.educannal.controller;


import com.atguigu.educannal.entity.Members;
import com.atguigu.educannal.mapper.MembersMapper;
import com.atguigu.educannal.service.MembersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-05-18
 */
@RestController
@RequestMapping("/educannal/members")
public class MembersController {
    @Autowired
    private MembersService membersService;

    @GetMapping
    public void get(){
        Members members = new Members();
        members.setId(1111111);

        membersService.save(members);
    }
}

